﻿using DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BUS
{
    public class UsersBUS
    {
        UsersDAO uDAO = new UsersDAO();
        public User DangNhap(string acc, string pass)
        {
            return uDAO.DangNhap(acc, pass);
        }
        public User GetByUserId(int id)
        {
            return uDAO.GetByUserId(id);
        }

        public User KiemTraUserName(string acc)
        {
            return uDAO.KiemTraUserName(acc);
        }
        public bool Insert(User c)
        {
            return uDAO.Insert(c);
        }

        public bool Edit(User ca)
        {
            return uDAO.Edit(ca);
        }

        public bool Delete(int id)
        {
            return uDAO.Delete(id);
        } 
    }
}
